package com.fs;

import com.fs.dao.MonitorFalconDao;
import com.fs.domain.MonitorFalcon;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

/**
 * Created by fengshuai on 17/5/18.
 */
public class StartApp {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:applicationContext.xml");
        MonitorFalconDao dao = applicationContext.getBean(MonitorFalconDao.class);
        List<MonitorFalcon> list = dao.batchGetByDay(20170517);
        System.out.println(list);
    }
}
